<?php
class App_User_Form_AdminLogin extends Main_Form
{
	/**
     * @var array
     */
    protected $_decoratorsForm  = array(
        'PrepareElements',
        array('ViewScript', array('viewScript' => '_form/admin-login.phtml')),
    );
	
	/**
	 * @return void
	 */
	public function init()
	{
		parent::init();
		
		$this->setMethod('post');
		$this->setDecorators($this->_decoratorsForm);
		
		$this->addElement('text', 'login', array(
			'label'	=> 'Логин',
			'required' => true,
			'order'	=> 10,
		));
		
		$this->addElement('password', 'password', array(
			'label'	=> 'Пароль',
			'required' => true,
			'order'	=> 20,
		));
		
		$this->addElement('submit', 'addButton', array(
			'label' => 'Войти',
			'order'	=> 30,
		));
	}

}
